﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Shapes;

namespace Sabloane_de_proiectare.Command
{
    class CrossRail : Canvas
    {
        public CrossRail()
            {
                Rectangle line1 = new Rectangle();
                line1.Height = 5;
                line1.Width = 50;
                line1.Fill = new SolidColorBrush(Colors.Black);
                Canvas.SetLeft(line1, 0);
                Canvas.SetTop(line1, 10);

                Rectangle line2 = new Rectangle();
                line2.Height = 5;
                line2.Width = 50;
                line2.Fill = new SolidColorBrush(Colors.Black);
                Canvas.SetTop(line2, 35);
                Canvas.SetLeft(line2, 0);

                Rectangle line3 = new Rectangle();
                line3.Height = 50;
                line3.Width = 5;
                line3.Fill = new SolidColorBrush(Colors.Black);
                Canvas.SetLeft(line3, 10);
                Canvas.SetTop(line3, 0);

                Rectangle line4 = new Rectangle();
                line4.Height = 50;
                line4.Width = 5;
                line4.Fill = new SolidColorBrush(Colors.Black);
                Canvas.SetTop(line4, 0);
                Canvas.SetLeft(line4, 35);

                this.Children.Add(line1);
                this.Children.Add(line2);
                this.Children.Add(line3);
                this.Children.Add(line4);
        }
    }
}
